โ– humdrum codex / glint v1.1.2
license AGPL-3.0
1.9 KB raw
id
TASK-034
title
Copy rich text (RTF) to clipboard
status
๐ŸŸฆ Backlog
assignee
created_date
2026-07-01 01:23
labels
feature
dependencies
priority
medium
ordinal
33000

Description

Convert current buffer's markdown to RTF and put it on system clipboard, so pasting into Mail/Word/Docs/Pages shows formatted text instead of raw markdown. Reuse the existing HTML export pipeline (internal/export) as the conversion source: render markdown->HTML via Document(), then convert HTML->RTF. On macOS, shell out to 'textutil -convert rtf -stdout' for HTML->RTF, then 'osascript' to push the RTF bytes onto NSPasteboard as public.rtf (plain atotto/clipboard.WriteAll only sets string type, not RTF). Non-macOS: best-effort or explicit unsupported error, matching the existing GOOS-switch pattern in internal/export/file.go browserCommand(). Trigger via a new in-app keybind (avoid existing Ctrl+D/E/F/G/I/K/L/N/P/Q/S/U/slash) and a new CLI flag mirroring -e/--export (TASK-030), both funneling through a.exportOptions() like Ctrl+E does today.

Acceptance Criteria